package com.drug.mapper;

import com.drug.domain.DrugCategory;
import com.drug.domain.Result;

import java.util.List;

/**
 * 药品类别
 */
public interface DrugCategoryMapper {
    int deleteByPrimaryKey(Integer dcId);

    int insert(DrugCategory record);

    int insertSelective(DrugCategory record);

    DrugCategory selectByPrimaryKey(Integer dcId);

    int updateByPrimaryKeySelective(DrugCategory record);

    int updateByPrimaryKey(DrugCategory record);

    List<DrugCategory> selectAll();


    //根据药品名称查询id
    int selectIdbyName(String name);


    String selectNameById(Integer dcId);
}